# Calling convention:
# -> rdi, rsi, rdx, rcx, r8d, r9d, [stack] ->
# rax must be zeroed
# sym module use R_1 register

.text
         jmp    data
code:
         popq   %rsi                 # Get new stdout path
         movq   $1,  %rdi            # Change fd=1
         call   %rbx                 # Call fd_to_file
         int3                        # Revert
data:
         call   code
library:
.string "stdout.txt"
